<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Mainpage</title>
	<%@include file="/WEB-INF/common/static.jsp" %>
	<script type="text/javascript">
		$(function(){
        	$("iframe").attr("height" , window.innerHeight - 50 + "px");
        	$(window).resize(function(){
            	$("iframe").attr("height" , window.innerHeight - 50 + "px");
        	});
        });
    	$(function(){
			$("#mainFrame").attr("height" , window.innerHeight -5 + "px");
			$(window).resize(function(){
				$("#mainFrame").attr("height" , window.innerHeight -5 + "px");
			});
		});
	</script>
</head>
<body style="padding-top:50px;" class="loadbackpic">
	<nav class="navbar navbar-fixed-top" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed"
				data-toggle="collapse" data-target="#navbar" aria-expanded="false"
				aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">事务管理系统</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li>
					<a target="homeFrame" href="${ctx}/showOfficeManagePage.do">事务管理</a>
				</li>
			</ul>
			<div class="navbar-right">
				<p class="navbar-text">
					<a class="text-muted nav-user"  target="homeFrame" href="#">
						<input type="hidden" id="userId" value="${user.id }">
						<span class="glyphicon glyphicon-user" id="username">${user.userName }</span></a>
				</p>
				<ul class="nav navbar-nav">
					<li><a href="${ctx }/home.do" style="font-size:14px;font-weight: normal">退出登入</a></li>
				</ul>
			</div>
		</div>
	</div>
</nav>
<iframe class="homeFrame" name="homeFrame" noresize="noresize" style="width: 100%" frameborder="no">
	
</iframe>
</body>
</html>